package com.czk.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.czk.pojo.User;
import com.czk.service.UserService;
import org.springframework.beans.factory.annotation.Value;

/**
 * @Author:ChenZhangKun
 * @Date: 2021/9/15 14:02
 */
@Service(interfaceClass = UserService.class, version = "3.0")
public class UserServiceImpl3 implements UserService {
    @Value("${server.port}")
    private Integer port;

    @Override
    public User getUserByName(String username) {
        return new User(username + " love nzq " + port, 26, "nan");
    }
}
